package com.chat.view;

import javafx.scene.control.RadioButton;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.text.Text;

import java.io.File;

public class InviteFriendController {
    public ImageView touxiang;
    public Text nickname;
    public Text qianming;
    public RadioButton select;

    public void setTouxiang(String username) {
        File file1=new File("D:/chatproject/client/"+username+".png");
        this.touxiang.setImage(new Image("file:"+file1.getAbsolutePath()));
    }

    public void setNickname(String nickname) {
        this.nickname.setText(nickname);
    }

    public void setQianming(String qianming) {
        this.qianming.setText(qianming);
    }
    public boolean isSelect(){
          if(this.select.isSelected())
              return true;
          else return false;
    }


}
